﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using YNTK.Common.Enum;
using YNTK.Common.Filter;
using YNTK.Dependency;

namespace YNTK.Message.Entitys.Dto.Message
{
    /// <summary>
    /// 添加通知公告请求模型
    /// </summary>
    [SuppressSniffer]
    public class AddMessageRequestModel
    {
        /// <summary>
        /// 接收对象(0.所有人 1.本机构 2.指定人员 3.特定机构)
        /// </summary>
        [Required(ErrorMessage = "接收对象标识不能为空")]
        public NoticeEnum notice { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        [Required(ErrorMessage = "标题不能为空")]
        public string title { get; set; }

        /// <summary>
        /// 正文内容	
        /// </summary>
        public string bodyText { get; set; }

        /// <summary>
        /// 收件用户id集合,接收对象为指定人员时使用传用户id
        /// </summary>
        public List<string> toUserIds { get; set; }

        /// <summary>
        /// 接收对象为特定机构时使用,机构id拼接上父级
        /// </summary>
        public List<string[]> toMechanismValue { get; set; }

        /// <summary>
        /// 相关附件数据
        /// </summary>
        public List<CommonFileRequestModel> fileData { get; set; }

    }
}
